package com.TaskOrganizer.actions;

import java.awt.event.ActionEvent;

import javax.swing.Action;

import com.TaskOrganizer.dialogs.ListTasksDialog;

public class ListTasks extends DefaultAction {

	private static final long serialVersionUID = -5742483184010625507L;

	public ListTasks() {
		super();
		putValue(Action.NAME, "List Tasks");
		putValue(Action.SMALL_ICON, getIcon("/com/TaskOrganizer/icons/"
				+ getValue(Action.NAME).toString().toLowerCase() + ".png"));
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		new ListTasksDialog();
	}

}
